﻿<Window x:Class="dotNails.UI.ToolWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dotNails="clr-namespace:dotNails.UI"
    WindowStyle="None"
    ResizeMode="NoResize"
    Title="dotNails ToolWindow"
    Width="449" Height="113"
    AllowsTransparency="True"
    Background="Transparent">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0" Fill="Transparent" />

        <Border Name="WindowTitleBar" CornerRadius="30" Width="449" Height="113" BorderBrush="{DynamicResource Text1Brush}" BorderThickness="1" Background="#444444">

            <StackPanel Margin="10, 8, 10, 8">

                <Grid Margin="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="60"/>
                        <RowDefinition Height="40"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>

                    <StackPanel VerticalAlignment="Top" HorizontalAlignment="Right" Orientation="Horizontal" Margin="4,0,14,4">
                        <Button Name="WindowCloseButton" MinWidth="0" MinHeight="0" Width="16" Height="16" IsTabStop="false" Background="#EECC0000">
                            <Image Stretch="Fill" Width="8" Height="8" Source="{DynamicResource CloseButton}" />
                        </Button>
                    </StackPanel>
                    
                    <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Center" Margin="0 15">
                        <TextBlock Text="Dbml Name" VerticalAlignment="Top" FontSize="16" Margin="0 0 5 0"/>
                        <TextBox x:Name="txtDbmlName" Height="28" TextWrapping="Wrap" Width="250" VerticalAlignment="Top"/>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
                        <Button x:Name="btnCreate" Content="Create" Click="btnCreate_Click" IsDefault="True" Width="60" Height="30" Margin="0 0 5 0" />
                        <Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click" IsCancel="True" Width="60" Height="30" Margin="5 0 0 0" />
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Border>
    </Grid>

</Window>